package com.dao;

import com.model.ExtractTicket;
import com.model.ExtractTicketModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author
 * @Description:
 * @date 2021/4/17 21:46
 */
@Component
public interface ExtractTicketDao {

    ExtractTicket getByUserId(Long userId);

    List<ExtractTicketModel> list(@Param("name") String name);

    void updateExtractTicket(Long id,Integer num);

    void addExtractTicket(Long userId,Integer num);

    void addExtractTicketRed(@Param("userId") Long userId, @Param("sendNumber") Integer sendNumber, @Param("balanceNumber") Integer balanceNumber, @Param("source") int source, @Param("adminId") Long adminId);
}
